package com.dss.sdk.api.req;

import com.dss.sdk.api.base.BaseDssRequest;
import com.dss.sdk.file.FileItem;
import com.dss.sdk.request.DssUploadRequest;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Fadada
 */
@Data
public class ZxcaFileUploadRequest extends BaseDssRequest implements DssUploadRequest {
    private FileItem file;

    private String fileName;

    @Override
    public Map<String, FileItem> getFileParams() {
        return new HashMap<String, FileItem>(1) {{
            put("file", file);
        }};
    }
}
